import React from 'react'
import { Result, Button } from 'antd'
import { useHistory } from 'react-router'

export default function NoPermission() {
    const history = useHistory()
    return (
        <Result
            status="403"
            title="无权限"
            subTitle="对不起,您没有权限访问该页面"
            extra={<Button type="primary" onClick={() => history.goBack()}>返回</Button>}
        />
    )
}
